// import Cookies from 'js-cookie'

const app = {
  state: {
    route: '',
    side: true
  },
  mutations: {
    SET_ROUTE: (state, route) => {
      state.route = route
    },
    SET_SIDE: (state, side) => {
      state.side = side
    }
  },
  actions: {
    setRoute ({ commit }, route) {
      commit('SET_ROUTE', route)
    },
    setSide ({ commit }, side) {
      commit('SET_SIDE', side)
    }
  }
}
export default app
